package com.hlkj.baojin.dao;

import com.hlkj.baojin.entity.AlarmRecord;
import com.hlkj.baojin.utils.bean.Page;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author 徐其伟
 * @Description:
 * @date 18-12-17 上午10:00
 */
public interface IAlarmRecordDao extends MongoRepository<AlarmRecord, String> {
    List<AlarmRecord> findByCompanyIdIn(List<String> companyIds, Page page);
    List<AlarmRecord> findByCompanyIdInAndCreateTimeBetween(List<String> companyIds, Long start, Long end, Page page);

    List<AlarmRecord> findByCompanyId(String com);
}
